package com.atguigu;


import com.atguigu.jinx.entity.vo.LoginResultVO;
import com.atguigu.jinx.entity.vo.LoginUPVO;
import com.atguigu.jinx.service.IJobTaskService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest(classes = JinxApplication.class)
public class GenerateToken {



    @Autowired
    private  IJobTaskService iJobTaskService;




    @Test
    public  void test1() {
        LoginUPVO loginUPVO = new LoginUPVO();
        loginUPVO.setUsername("xiaodonggua");
        loginUPVO.setPassword("Wk@19971206");
        LoginResultVO resultVO = iJobTaskService.passWordLogin(loginUPVO);
        System.out.println(resultVO.getToken());
    }
}
